import * as u from '@/util/util'

export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  indexWidth: 50,
  stripe: true,
  align: 'center',
  searchMenuSpan: 6,
  labelWidth: 120,
  height: '600px',
  calcHeight: 400,
  dialogWidth: 900,
  menuWidth: 300,
  menuAlign: 'center',
  column: [
    {
      prop: 'id',
      label: 'ID',
      hide: true,
      addDisplay: false,
      editDisplay: false
    }, {
      prop: 'name',
      label: '大屏名',
      type: 'input',
      overHidden: true,
      minWidth: 60,
      maxlength: 255,
      span: 24,
      search: true,
      rules: [{
        required: true,
        message: '请输入',
        trigger: 'blur'
      }]
    },
    {
      prop: 'screenType',
      label: '大屏分类',
      type: 'select',
      overHidden: true,
      minWidth: 60,
      maxlength: 255,
      span: 24,
      search: true,
      dicUrl:"/sys-dict/getItem/screen_type",
      rules: [{
        required: true,
        message: '请输入',
        trigger: 'blur'
      }]
    },
    {
      prop: 'width',
      label: '适应宽度',
      type: 'number',
      precision:'0',
      overHidden: true,
      minWidth: 60,
      rules: [{
        required: true,
        message: '请输入',
        trigger: 'blur'
      }]
    },
    {
      prop: 'height',
      label: '适应高度',
      type: 'number',
      precision:'0',
      overHidden: true,
      minWidth: 60,
      rules: [{
        required: true,
        message: '请输入',
        trigger: 'blur'
      }]
    },
    {
      prop: 'isShare',
      label: '是否共享',
      type: 'radio',
      overHidden: true,
      minWidth: 60,
      maxlength: 200,
      search: true,
      dicUrl:"/sys-dict/getItem/whether",
      rules: [{
        required: true,
        message: '请输入',
        trigger: 'blur'
      }]
    },
    {
      prop: 'isEncrypt',
      label: '是否加密',
      type: 'radio',
      overHidden: true,
      minWidth: 60,
      maxlength: 200,
      dicUrl:"/sys-dict/getItem/whether",
      rules: [{
        required: true,
        message: '请输入',
        trigger: 'blur'
      }]
    },
    {
      prop: 'password',
      label: '加密密码',
      addDisplay: false,
      editDisplay: false,
      type: 'input',
      overHidden: true,
      minWidth: 60,
      maxlength: 12,
      span: 24,
    },
    {
      prop: 'note',
      label: '备注',
      type: 'textarea',
      overHidden: true,
      minWidth: 60,
      maxlength: 500,
      span: 24,
    },
    {
      prop: 'createDate',
      label: '创建时间',
      type: 'datetime',
      addDisplay: false,
      editDisplay: false,
      overHidden: true,
      minWidth: 60,
    },
  ]
}



